namespace AgileDashboard.AppCode
{
    using System.Xml.Linq;

    /// <summary>
    /// Interface used to abstract data retrieval
    /// </summary>
    public interface IDataConnection
    {
        /// <summary>
        /// Fetches REST data from Version One instance based on a query
        /// </summary>
        /// <param name="query">the query portion of a Version One REST API request</param>
        /// <returns>An XDocument resulting from the request</returns>
        XDocument Execute(string query);
    }
}